package org.xiaoyu.rpc.seralization;

/**
 * Created By Have
 * 2021/7/5 13:42
 */
public interface Serializer {
    int getSerializerAlgorithm();

    byte[] serializer(Object obj);

    <T> T deserializer(Class<T> clazz, byte[] bytes);
}
